Remove empty Keys from JSON arrays using Groovy